package com.bupt.cosmfl.cosmflweb.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author fangtiewei
 * @Date 2021/7/25 11:10
 * @Description 登录dto
 */
@Data
public class UserLoginDTO {

    @NotNull(message = "用户名不能为空")
    @JsonProperty("username")
    private String username;

    @NotNull(message = "密码不能为空")
    @JsonProperty("password")
    private String password;


}
